import { createStore } from 'vuex'

export default createStore({
    state: {
        job: {
            setting: {},
            content: [
                {
                    reader: {},
                    writer: {}
                }
            ]
        }
    },
    mutations: {
        setBaseSetting(state, setting){
            state.job.setting = setting
        },
        setWriter(state, writer){
            state.job.content[0].writer = writer
        },
        setReader(state, reader){
            state.job.content[0].reader = reader
        }
    }
})